import { pubRequire } from '@utils/public'
const baseUrl = '/examinations/users'
// 获取列表
export function getSearchList(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}`, params, callBack, errBack)
}
// 审核通过
export function checkPass(userid, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${userid}/pass`,
    params,
    callBack,
    errBack
  )
}
// 审核不通过
export function checkUnPass(userid, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${userid}/unpass`,
    params,
    callBack,
    errBack
  )
}
// 批量通过
export function passMultAPI(params, callBack, errBack) {
  return pubRequire('put', `${baseUrl}/pass`, params, callBack, errBack)
}
// 批量不通过
export function notPassMultAPI(params, callBack, errBack) {
  return pubRequire('put', `${baseUrl}/unpass`, params, callBack, errBack)
}
